//! Copyright 2012 Xicut Technology, Inc.
//! All rights reserved
//!
#ifndef __Sensor_h__
#define __Sensor_h__

#include "BasicTypes.h"
#include "SensorCheck.h"


class cSensor
{
public:
    enum eSensorID
    {
        SS_CONVEYER_1   = 0,
        SS_CARBIN_1     = 1,
        SS_CONVEYER_2   = 2,
        SS_CARBIN_2     = 3,
        SS_CONVEYER_3   = 4,
        SS_CARBIN_3     = 5,
        SS_TOP_CARBIN   = 6,
        SS_GATE         = 7,
        SS_CARBIN       = 8,
        SS_PRODUCT_OUT  = 9,

        //SS_GENERAL      = 10,
        SS_MAX          = 10,
    };
private:
    static cSensorCheck sSensorStatus[];

public:
    static void InitReset();
    static bool GetStatus(eSensorID ss);
    static bool GetChange(eSensorID ss);
    static void RunOne();
};

#endif // __Sensor_h__
